<!DOCTYPE HTML>
<html>
	<head>
		<title>SOAP-Test for synchronous requests</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta name="script" http-equiv="Content-Script-Type" content="text/javascript" />
		<meta name="script" http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Access-Control-Allow-Origin" content="*">
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
		<script src="../business/services/soap_service.js" type="text/javascript"></script>
		<script>
			function testSoap() {
				var soapService = new SoapService('../business/services/soap_service_requesthandler.php', 'POST');
				var result = soapService.getAllGroups();
				console.log($.parseJSON(result));
                                
                                result = soapService.getMatchdataForGroupType(1);
                                console.log($.parseJSON(result));
                                
                                result = soapService.getMatch(1000); // 27396
                                console.log($.parseJSON(result));
                                
                                result = soapService.getMatchesBetween("2014-06-12", "2014-06-13")
                                console.log($.parseJSON(result));
			}
		</script>
	</head>
	<body>
		<button onclick="testSoap()">send Request</button>
	</body>
</html>